import { ApiCall } from "tsrpc";
import { ReqSort, ResSort } from "../../../shared/master/bag/PtlSort";
import { player } from "../../../model/fight/body/player";
import { template } from "../../../shared/master/MsgAction";

export default async function (call: ApiCall<ReqSort, ResSort>) {
    call.succ({})
    let user = call.req._player as player;
    user.getBag().sort();
    user.sendMsg(template.default, '背包整理完成');
    user.callApi('bag/List_filter', {
        filter: undefined
    })
}